runtime.slice.cap (field)
12 uses
runtime (current package)
cgocall.go#L291: p.cap = cap(s)
cgocall.go#L528: for i := 0; i < s.cap; i++ {
debuglog.go#L312: bb.len, bb.cap = len(x), len(x)
map.go#L1651: if s.len >= s.cap {
map.go#L1716: if s.len >= s.cap {
mheap.go#L550: sp.cap = n
print.go#L21: rp.cap = sp.len
slice.go#L18: cap int
slice.go#L290: num -= old.cap - old.len // preserve memory of old[old.len:old.cap]
slice.go#L291: new := growslice(old.array, old.cap+num, old.cap, num, et)
slice.go#L297: oldcapmem := uintptr(old.cap) * et.Size_
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |